package com.service.infoEntry.vo;

import io.swagger.models.auth.In;
import lombok.Data;

@Data
public class TeamVo {
    /**
     * 团队id
     */
    private String id;
    /**
     * 团队名称
     */
    private String teamName;
    /**
     * 创始人id
     */
    private String creatorId;
    /**
     * 团队类型
     */
    private String teamType;
    /**
     * 团队状态:0--正常；1--删除
     */
    private Integer status;
    /**
     * 团队角色
     */
    private RoleVo role;
    /**
     * 团队角色:1-创建者；2-管理员；3-普通用户
     */
    /*private Integer roleStatus;

    public String getRole() {
        if(null != role)
        {
            switch (roleStatus)
            {
                case 1:
                    role = "创建者";
                    break;
                case 2:
                    role = "管理员";
                    break;
                case 3:
                    role = "普通用户";
                    break;
                default:
                    break;
            }
        }
        return role;
    }

    public void setRole(Integer roleStatus) {
        if(roleStatus != null)
        {
            switch (roleStatus)
            {
                case 1:
                    this.role = "创建者";
                    break;
                case 2:
                    this.role = "管理员";
                    break;
                case 3:
                    this.role = "普通用户";
                    break;
                default:
                    break;
            }
        }
    }*/
}
